<?
	require_once "../../_func/__Global.php";
	require_once "../../_func/__Local.php";

	$return_url = $param->getString("return_url", "/order/item_order_signup.html");

	if ( GetCurrentUser() ) 
	{
		if($return_url == '' || $return_url == null)
			httpRedirect("/");
		else
			httpRedirect($return_url);
	}
	else 
	{
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>:: 전북농협 ERP 시스템 :: </title>
<link href="/css/layout.css" type="text/css" rel="stylesheet" />
<script src="/js/mng.js"></script>
<script type="text/javascript">

	$(document).ready(function() {
		jQuery.validator.setDefaults({
			onkeyup:false,
			onclick:false,
			onfocusout:false,
			showErrors:function(errorMap, errorList){
				$(errorList[0].element).focus();
				alert(errorList[0].message);
			}
		});
		$("#frm").validate({
			rules: {
				userid:			{required: true},
				passwd:			{required: true}
			},
			messages: {
				userid:			{required: "아이디를 입력해 주세요"},
				passwd:			{required: "암호를 입력해 주세요"}
			},
			success: function(label) {
				//$('#sbmtBtn').remove();
			}
		});
	});

</script>
</head>
<body class="login">
<script src="/js/mem.js"></script>
	<div class="loginBox">
		<div class="loginInput">
<form name=frm id=frm method=post action='login_ps.html' onSubmit="return mem_chk();">
			<p><input type="text" id="userid" name="userid" title="아이디를 입력해주세요." class="inputBox" /></p>
			<p><input type="password" id="passwd" name="passwd" title="패스워드를 입력해주세요." class="inputBox" /></p>
		</div>
		<p class="loginBtn"><input type=image  src="/img/btn_login.gif" alt="로그인" /></p>
		<input type="hidden" id="return_url" name="return_url" value="<?echo $return_url?>" />
</form>
	</div>
</body>
</html>
<?
	}
?>